/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2007-2009 Hechzh Property

   

   

   
*/
/*
 * Kern Sibbald, August 2007
 */

#define LogErrorMessage(msg) LogLastErrorMsg((msg), __FILE__, __LINE__)

extern int BareosAppMain();
extern void LogLastErrorMsg(const char* msg, const char* fname, int lineno);
extern int BareosMain(int argc, char* argv[]);
extern BOOL ReportStatus(DWORD state, DWORD exitcode, DWORD waithint);
extern void d_msg(const char*, int, int, const char*, ...);

/* service.cpp */
bool postToBareos(UINT message, WPARAM wParam, LPARAM lParam);
bool isAService();
int installService(const char* svc);
int removeService();
int stopRunningBareos();
int bareosServiceMain();

/* Globals */
extern DWORD service_thread_id;
extern DWORD service_error;
extern bool opt_debug;
extern bool have_service_api;
extern HINSTANCE appInstance;
extern int bareosstat;
